const express = require('express');
const app = express();
const router = express.Router();
app.get('/', (req, res) =>{
    res.send('res1')
}).listen(3000, ()=>{
    console.log('启动成功');
});
app.use('/index', (req, res) => {
    res.send('res2')
}).listen(3001,()=>{
    console.log('启动成功2')
});
router.get('/add', (req, res) => {
    res.send('res3')
}).use('edit' , (req, res) => {
    res.send('res4')
});
app.use(router);